package cn.edu.seig.textbook;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.boot.web.servlet.support.SpringBootServletInitializer;
import org.springframework.cache.annotation.EnableCaching;
import org.springframework.scheduling.annotation.EnableScheduling;

/**
 * @author lenovo
 */
@SpringBootApplication
@EnableScheduling
public class TextbookApplication extends SpringBootServletInitializer {
	@Override
	protected SpringApplicationBuilder configure(SpringApplicationBuilder application){
		return application.sources(TextbookApplication.class);
	}
	public static void main(String[] args) {
		SpringApplication.run(TextbookApplication.class, args);
	}

}
